//
//  MYsegmentController.m
//  UI-09-作业
//
//  Created by dllo on 16/6/16.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "MYsegmentController.h"

@implementation MYsegmentController

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self setPropertys];
    }
    return self;
}
-(void)setPropertys{
    self.layer.cornerRadius = 10;
    self.tintColor = [UIColor purpleColor];
    self.selectedSegmentIndex = 0;
    
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
